package com.net.xpay.core.dao.safePay;

import com.net.xpay.core.domain.safePay.SafePayBookAccount;
import com.net.xpay.core.dto.SafePayBookAccountCountDto;
import com.net.xpay.core.model.SafePayBookAccountSearchModel;
import com.net.common.dao.Page;
import com.net.common.dao.VersionedMapper;
import com.net.common.annotation.DataShard;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;
import org.springframework.stereotype.Repository;

import java.util.List;

@DataShard("")
@Repository
public interface SafePayBookAccountMapper extends VersionedMapper<Long, SafePayBookAccount> {
    List<SafePayBookAccount> search(@Param("searchModel") SafePayBookAccountSearchModel searchModel, @Param("page") Page page);

    long searchCount(@Param("searchModel") SafePayBookAccountSearchModel searchModel);

    List<SafePayBookAccount> list(@Param("searchModel") SafePayBookAccountSearchModel searchModel);

    SafePayBookAccountCountDto searchCountDto(@Param("searchModel")SafePayBookAccountSearchModel searchModel);
}
